package com.cdx.jvm;

/**
 * @author chedx
 * @data 2021/1/25 7:03 AM
 */
public class JVMTestMain54 {
    public static void main(String[] args) throws Exception{
        Thread.sleep(30000);
        while (true) {
            loadData();
        }

    }

    private static  void loadData() throws Exception{
        byte[] data = null;
        for (int i = 0; i < 4; i++) {
            data = new byte[10 * 1024 * 1024];
        }
        data = null;

        byte [] data1 = new byte[10 * 1024 * 1024];
        byte [] data2 = new byte[10 * 1024 * 1024];
        byte [] data3 = new byte[10 * 1024 * 1024];
        data3 = new byte[10 * 1024 * 1024];

        Thread.sleep(1000);

    }
}
